using System;
using System.Xml.Serialization;

namespace DataAccessLayer
{
    [Serializable, XmlType("BaseStats")]
    [XmlInclude(typeof(ShooterStats))]
    public class ObjectStats
    {
        [XmlElement]
        public int Hp { get; set;}
        
        [XmlElement]
        public int Power { get; set; }

        [XmlElement]
        public int Speed { get; set; }
    }

    [Serializable, XmlType("BulletStats")]
    public class BulletStats
    {
        public int Damage { get; set; }

        public int Speed { get; set; }
    }
}